import request from "@/utils/request.js";

//上传文件
export const upload=(file)=>{
  const formData=new FormData()
  formData.append("file", file)
  return request.post( "/oss",formData,{
    headers: {
      'Content-Type': 'multipart/form-data'
    }}
  )
}
